package br.ufrj.cg.model;

import javax.swing.JLabel;

public class ImageContainerLabel extends JLabel {

	private static final long serialVersionUID = 1L;

	private StampImage stampImage;
	
	public ImageContainerLabel()
	{
		super();
		stampImage = new StampImage();
	}

	public void load()
	{
		if(getStampImage().getImage() != null)
		{
			setIcon(getStampImage().getImageIcon());
			setHorizontalAlignment(JLabel.CENTER);
			repaint();
		}
		else
		{
			System.out.println("Load = null.");
		}
	}
	
	public StampImage getStampImage() {
		return stampImage;
	}

	public void setStampImage(StampImage stampImage) {
		this.stampImage = stampImage;
	}
	
	
	
}
